package com.study.springboot.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wei.zhao
 * @description: 异常响应状态枚举类
 * @date 2021年12月02日 14:30
 */
@Getter
@AllArgsConstructor
public enum ErrorRespStatusEnum implements BaseRespStatus {
    UNAUTHORIZED(401, "未授权"),
    SC_FORBIDDEN(403, "无权限访问"),
    SERVICE_ERROR(500, "抱歉，您的操作出问题了，请反馈客服处理，谢谢"),
    OBTAIN_DISTRIBUTED_LOCK_FAILED(1000, "获取分布式锁失败"),
    METHOD_ARGUMENT_NOT_VALID(1001, "参数校验不合法：%s");

    /* 响应状态码*/
    private Integer code;

    /* 响应状态信息 */
    private String message;
}
